/* --------------------------------------------------
   RESET & BASE
-------------------------------------------------- */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  position: relative;
  font-family: 'Roboto', sans-serif;
  background: #0a0014;
  color: #fff;
  overflow-x: hidden;
  z-index: 1;
}

/* --------------------------------------------------
   BACKGROUND ANIMATION
-------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(circle at 30% 20%, rgba(255,0,128,0.18), transparent 70%),
    radial-gradient(circle at 70% 80%, rgba(0,255,255,0.18), transparent 70%),
    #080010;

  background-image:
    linear-gradient(rgba(255,0,128,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,255,0.18) 1px, transparent 1px);

  background-size:
    50px 50px,
    50px 50px;

  animation: gridFloat 12s linear infinite;
  opacity: 0.45;
}

@keyframes gridFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-150px); }
}

@keyframes gridFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-120px); }
}

/* --------------------------------------------------
   PLUIE DE DONNÉES — couche séparée
-------------------------------------------------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background-image:
    linear-gradient(rgba(0,255,255,0.25) 3px, transparent 3px);
  background-size: 2px 35px;

  animation: dataFall 0.35s linear infinite;
  opacity: 0.35;
}

@keyframes dataFall {
  0% { transform: translateY(0); }
  100% { transform: translateY(35px); }
}
/* --------------------------------------------------
   PARTICULES — SUBTILES, CYBERPUNK, NON FLASHY
-------------------------------------------------- */
.cyber-lights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background-image:
    radial-gradient(circle, rgba(255,0,128,0.22) 0%, transparent 70%),
    radial-gradient(circle, rgba(0,255,255,0.22) 0%, transparent 70%);
  background-size: 180px 180px, 160px 160px;
  background-position: 25% 35%, 75% 65%;

  animation: lightsDrift 14s ease-in-out infinite;
  opacity: 0.22;
}

@keyframes lightsDrift {
  0% { background-position: 25% 35%, 75% 65%; }
  50% { background-position: 28% 38%, 72% 62%; }
  100% { background-position: 25% 35%, 75% 65%; }
}
/* --------------------------------------------------
   SCAN HORIZONTAL — EDGERUNNERS
-------------------------------------------------- */
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;

  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.08) 50%,
    transparent 100%
  );
  background-size: 100% 4px;

  animation: scanMove 2s linear infinite;
  opacity: 0.25;
}

@keyframes scanMove {
  0% { background-position-y: -100%; }
  100% { background-position-y: 200%; }
}
/* --------------------------------------------------
   GLITCH OVERLAY — CYBERPUNK SOBRE
-------------------------------------------------- */
.glitch-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999; /* AU-DESSUS DE TOUT */

  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,0,128,0.25) 0px,
      rgba(255,0,128,0.25) 3px,
      transparent 3px,
      transparent 6px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0,255,255,0.25) 0px,
      rgba(0,255,255,0.25) 2px,
      transparent 2px,
      transparent 5px
    );

  mix-blend-mode: screen;
  opacity: 0.45;

  animation: glitchAggro 0.12s infinite;
}

@keyframes glitchAggro {
  0% {
    transform: translate(0,0);
    filter: hue-rotate(0deg);
  }
  25% {
    transform: translate(-3px, 2px) skewX(3deg);
    filter: hue-rotate(25deg);
  }
  50% {
    transform: translate(3px, -2px) skewX(-3deg);
    filter: hue-rotate(-25deg);
  }
  75% {
    transform: translate(-2px, 3px) skewX(2deg);
    filter: hue-rotate(15deg);
  }
  100% {
    transform: translate(0,0);
    filter: hue-rotate(0deg);
  }
}
/* --------------------------------------------------
   LAYOUT
-------------------------------------------------- */
.container {
  position: relative;
  z-index: 1;
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

main img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

/* --------------------------------------------------
   TITRES
-------------------------------------------------- */
h1 {
  text-align: center;
  background: linear-gradient(to right, #ff0099, #00eaff);
  padding: 25px;
  color: #000;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 0 25px #ff0099;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 2rem;
  font-family: 'Orbitron', sans-serif;
}

h1::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,0,0.4), transparent);
  animation: shine 2.5s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

h2 {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ff0099;
  text-shadow: 0 0 12px #ff0099;
  animation: glitchText 1.5s infinite;
  font-size: 1.6rem;
}

@keyframes glitchText {
  0% { text-shadow: 2px 0 #00eaff, -2px 0 #ff0099; }
  50% { text-shadow: -2px 0 #00eaff, 2px 0 #ff0099; }
  100% { text-shadow: 2px 0 #00eaff, -2px 0 #ff0099; }
}

/* --------------------------------------------------
   DRONE PANEL
-------------------------------------------------- */
.drone-panel {
  margin: 50px auto;
  width: 90%;
  max-width: 980px;
  padding: 30px;
  background: rgba(255,0,128,0.05);
  border: 1px solid #ff0099;
  border-radius: 12px;
  box-shadow:
    0 0 25px rgba(255,0,128,0.4),
    inset 0 0 15px rgba(0,255,255,0.2);
  backdrop-filter: blur(4px);
  animation: panelPulse 3s infinite;
  z-index: 1;
}

@keyframes panelPulse {
  0%, 100% { box-shadow: 0 0 20px #ff0099; }
  50% { box-shadow: 0 0 35px #00eaff; }
}

/* --------------------------------------------------
   LIENS & BOUTONS
-------------------------------------------------- */
a {
  display: inline-block;
  text-decoration: none;
  color: #000;
  background: linear-gradient(to right, #ff0099, #ffee00);
  padding: 14px 36px;
  border-radius: 8px;
  margin: 12px 8px 0 0;
  min-width: 200px;
  text-align: center;
  transition: 0.2s ease-in-out;
  box-shadow: 0 0 12px #ff0099;
  font-size: 1.2rem;
}

a:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 0 25px #ff0099,
    0 0 35px #ffee00;
}

/* Bouton accueil */
.home-button {
  text-align: center;
  margin: 30px 0;
}

.home-button a {
  display: inline-block;
  background: linear-gradient(to right, #00ffcc, #0099ff);
  padding: 18px 45px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0,255,255,0.6);
  transition: 0.2s ease-in-out;
}

.home-button a:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0,255,255,0.9);
}

/* --------------------------------------------------
   HEADER & NAVIGATION
-------------------------------------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: rgba(255,0,128,0.1);
  border-bottom: 2px solid #ff0099;
  position: relative;
  box-shadow: 0 0 25px #ff0099;
}

header .logo img {
  width: 70px;
  filter: drop-shadow(0 0 12px #ff0099);
}

nav.menu a {
  background: none;
  color: #ffee00;
  padding: 10px;
  font-weight: bold;
  text-shadow: 0 0 10px #ffee00;
}

nav.menu a:hover {
  color: #fff;
  text-shadow: 0 0 15px #ff0099;
}

/* Menu burger */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 32px;
  cursor: pointer;
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
}

/* --------------------------------------------------
   RESPONSIVE (MENU BURGER)
-------------------------------------------------- */
@media (max-width: 800px) {

  .menu-icon {
    z-index: 10003;
    display: block;
  }

  nav.menu {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(20,0,30,0.9);
    width: 200px;
    flex-direction: column;
    padding: 20px;
    display: none;
    border-left: 2px solid #ff00ff;
    border-bottom: 2px solid #ff00ff;
    box-shadow: 0 0 20px #ff00ff;
    z-index: 10002;
  }

  #menu-toggle:checked + .menu-icon + nav.menu {
    display: flex;
  }
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
  margin-top: 60px;
  padding: 20px;
  text-align: center;
  width: 100%;
  background: rgba(255,0,128,0.1);
  backdrop-filter: blur(5px);
  border-top: 2px solid #ff0099;
  box-shadow: 0 0 25px #ff0099;
  font-size: 1.1rem;
}

/* Icônes réseaux */
a.social {
  background: none !important;
  padding: 0 !important;
  margin: 0 10px !important;
  min-width: auto !important;
  box-shadow: none !important;
}

a.social img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  transition: 0.2s ease;
  filter: drop-shadow(0 0 12px #ff0099);
}

a.social img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 20px #ffee00);
}
/* --------------------------------------------------
   IMAGES
-------------------------------------------------- */
img {
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
  filter: drop-shadow(0 0 10px #00eaff);
}

/* --------------------------------------------------
   MEDIA QUERIES SUPPLÉMENTAIRES
-------------------------------------------------- */

/* Tablettes */
@media (max-width: 1000px) {
  h1 {
    font-size: 1.8rem;
    padding: 20px;
  }

  main p {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .container {
    padding: 16px;
  }
}

/* Smartphones */
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
    padding: 15px;
  }

  main p {
    font-size: 1rem;
    line-height: 1.55;
    text-align: justify;
  }

  footer p {
    font-size: 0.9rem;
  }

  nav.menu a {
    padding: 12px;
    font-size: 1.1rem;
  }
}

/* Très petits écrans */
@media (max-width: 400px) {
  h1 {
    font-size: 1.3rem;
  }

  nav.menu {
    width: 160px;
  }

  nav.menu a {
    font-size: 1rem;
  }
}
a.social {
  background: none !important;
  padding: 0 !important;
  margin: 0 10px !important;
  min-width: auto !important;
  box-shadow: none !important;
  color: inherit !important;
  display: inline-block;
}
a.social img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

a.social img:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(0,255,255,0.7);
}
header {
  position: relative;
  z-index: 10000; /* le header (et donc le menu) passe au-dessus de tout */
}

main, footer, .drone-panel {
  position: relative;
  z-index: 1;
}